<hr/>
<h3>Videos</h3>
<?php
$search_term = $data['Album']['title'];
if ($data['Album']['youtube_keyword']) {
	$search_term = $data['Album']['youtube_keyword'];
}else {
	$search_term = $data['Cuisine']['title'].'+'.$data['Album']['title'];
}

$search_term = str_replace(' ','+',$search_term);

$feedURL = 'http://gdata.youtube.com/feeds/api/videos?q='.$search_term.'&start-index=21&max-results=10&v=2';

$sxml = simplexml_load_file($feedURL);
?>
<ul class="ytube_video">
<?php
	if ($sxml->entry) {
		foreach ($sxml->entry as $entry) {
			$ytitle = $entry->title;
			$yid = $entry->id;
			$ygur = explode(':',$yid);
			echo '<li><a href="http://youtu.be/'.$ygur[3].'" title="'.$ytitle.'" target="_link"><img src="http://i4.ytimg.com/vi/'.$ygur[3].'/default.jpg"></li>';
		}
	}else {
		echo '<li>NO ENTRY</li>';
	}
?>
</ul>